<template>
	<view class="title_wrap">
		<view>
			<text>{{ name }}</text>
			<text class="word" v-if="word">{{ word }}</text>
		</view>
		<view>
			<text>全部</text>
			<text class="iconfont icon-right"></text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "l-title",
		props: {
			name: {
				type: String,
				default: () => {
					return '热门推荐'
				}
			},
			word: {
				type: String,
				default: () => {
					return 'HOT'
				}
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.title_wrap {
		height: 60rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		&>view:first-child {
			font-size: 38rpx;
			display: flex;
			align-items: center;
		}

		&>view:last-child {
			font-size: 32rpx;
			color: $mxg-text-color-grey
		}

		.word {
			font-size: 20rpx;
			color: #fff;
			padding: 0 10rpx;
			background-color: $mxg-text-color-red;
			border-radius: 30rpx 30rpx 30rpx 0;
			margin-left: 10rpx;
		}

	}
</style>
